= turbo_frame_tag :release, class: 'row' do
  .col-md-8.col-lg-9
    == render 'releases/body/new_release_callout', enable_callout: release.scheme.new_build_callout, latest_release: release.outdated?
    == render 'releases/body/metadata', release: release
    == render 'releases/body/changelog', release: release
    == render 'releases/body/devices', devices: release.devices
    == render 'releases/body/activity', current_release: release, recently_releases: release.channel.recently_releases

  .col-md-4.col-lg-3
    - if current_user&.manage? && !release.app.archived
      = link_to t('releases.new.title'), new_channel_release_path(release.channel), class: 'btn btn-success w-100 mb-3', data: { turbo: false }

    - if user_signed_in_or_guest_mode?
      == render 'releases/sidebar/debug_file', debug_file: release.debug_file
      == render 'releases/sidebar/version', channel: release.channel
    == render 'releases/sidebar/qrcode'
    - if user_signed_in_or_guest_mode?
      = link_to t('releases.show.view_detail'), friendly_channel_overview_path(release.channel), class: 'btn btn-secondary w-100', data: { turbo: false }
